﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.WarehouseInsp.Buz.Validator;
using System.ComponentModel.DataAnnotations;
using Microhard.WarehouseInsp.Buz.BuzEnum;
using Microhard.Core.Extensions;

namespace Microhard.WarehouseInsp.Buz.Models
{
   [FluentValidation.Attributes.Validator(typeof(OutInPutApplyModelValidator))]
    public class OutInPutApplyModel : BasePermissionModel
    {
       [ModelPKID]
       public Guid OutInPutApplyID { get; set; }
       public Guid PrjID { get; set; }
       public DateTime? ApplyDate { get; set; }
       public DateTime? ApproveDate { get; set; }
       public int OutInPutType { get; set; }
       public DateTime? CreateTime { get; set; }
       public Guid ApplyerID { get; set; }
       public string ApplyerName { get; set; }
       public string ApproverID { get; set; }
       public string ApproverName { get; set; }
       public string PrjName { get; set; }
       public int State { get; set; }
       public string strState
       {
          
             get
            {
                var um = (PrjStatus)Enum.Parse(typeof(PrjStatus), this.State.ToString());
                return um.GetDisplayText();
            }
              
          
       }
       public SupProjectModel project { get; set; }
       public Guid ProjectID { get; set; }
       //预计出库日期
       public DateTime PredictOutDate { get; set; }
       public string WarehouseName { get; set; }
       public Guid WarehouseID { get; set; }


    }
}
